<template>
  <div class="zi3">
    <h1>子组件3的数据---------{{text}}</h1>
  </div>
</template>

<script>
import Eventbus from "@/eventBus/text.js"
export default {
  data(){
    return{
      text:''
    }
  },
  mounted(){
    Eventbus.$on('zi2Value',(val) =>{
      this.text = val;
    })
  }
}
</script>

<style scoped>

</style>